package com.swanclouds.redfish.chassis;

import com.swanclouds.api.chassis.ThermalService;
import com.swanclouds.core.transport.ClientConstants;
import com.swanclouds.model.chassis.Thermal;
import com.swanclouds.redfish.chassis.domain.ThermalModel;
import com.swanclouds.redfish.internal.BaseChassisService;

/**
 * Author: HuangFuYuHui
 * Title: ThermalServiceImpl
 * Description: TODO
 * Date: 2022/7/21 14:22
 */
public class ThermalServiceImpl extends BaseChassisService implements ThermalService {

    /**
     * 查询指定服务器机箱的温度和风扇传感器信息。
     * @return com.swanclouds.model.chassis.Thermal
     **/
    @Override
    public Thermal get() {
        return get(ThermalModel.class,uri(ClientConstants.PATH_CHASSIS_THERMAL,getChassisId())).execute();
    }

}
